﻿using Face8280WebSocketServer.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Face8280WebSocketServer.Controllers.DeviceAPI
{
    /// <summary>
    /// 设备拉取远程操作指令的返回值
    /// </summary>
    public class DeviceRemoteResult : FaceAPIResult
    {
        /// <summary>
        ///重启  0:不重启，1:重启
        /// </summary>
        public int Restart { get; set; }

        /// <summary>
        /// 变更服务器路径 0:不变更服务器路径，1:更新服务器路径信息
        /// </summary>
        public int SeverUpdate { get; set; }

        /// <summary>
        /// 服务器路径
        /// </summary>
        public string SeverPath { get; set; }


        /// <summary>
        /// 恢复出厂设置  0:不做操作，1：恢复出厂设置
        /// </summary>
        public int Recover { get; set; }


        /// <summary>
        /// 远程开门 0：不处理，1：打开继电器
        /// </summary>
        public int Opendoor { get; set; }

        /// <summary>
        /// 关闭报警 0:不处理，1:关闭所有正在发生的报警，并记录
        /// </summary>
        public int Closealarm { get; set; }

        public DeviceRemoteResult()
        {
            SeverUpdate = 0;
            SeverPath = string.Empty;
        }
    }
}
